<div  ng-include="'partials/common/crumb/crumb.html'"></div>
<div id="peer" ng-controller="peerCtrl" ng-init="init()">

    <div class="latest">
        <div class="table_title">{{'PEER_LIST' | translate}}</div>
    </div>
    <div class="deal_table">
        <table class="table" ng-table="pertableparams" border="0" width="100%" cellpadding="0" cellspacing="0" template-pagination="custom/pager" >
            <tr>
                <td>IP</td>
                <td>{{'VERSION' | translate}}</td>
                <td>{{'OPERATING_SYSTEM' | translate}}</td>
            </tr>
            <tr ng-repeat="i in $data"  >
                <td class="level"> {{i.ip}}</td>
                <td class="level">{{i.version }}</td>
                <td>{{i.os}}</td>
            </tr>
        </table>
        <script type="text/ng-template" id="custom/pager">
            <ul class="pagination ng-table-pagination">
                <li ng-class="{'disabled': !page.active && !page.current, 'active': page.current}" ng-repeat="page in pages" ng-switch="page.type">
                    <a ng-switch-when="prev" ng-click="params.page(page.number)" href="">
                        <i class="mdi-hardware-keyboard-arrow-left">{{'PREV_PAGE' | translate}}</i>
                    </a>
                    <a ng-switch-when="first" ng-click="params.page(page.number)" href="">
                        <span ng-bind="page.number"></span>
                    </a>
                    <a ng-switch-when="page" ng-click="params.page(page.number)" href="">
                        <span ng-bind="page.number"></span>
                    </a>
                    <a ng-switch-when="more" ng-click="params.page(page.number)" href="">&#8230;</a>
                    <a ng-switch-when="last" ng-click="params.page(page.number)" href="">
                        <span ng-bind="page.number"></span>
                    </a>
                    <a ng-switch-when="next" ng-click="params.page(page.number)" href="">
                        <i class="mdi-hardware-keyboard-arrow-right">{{'NEXT_PAGE' | translate}}</i>
                    </a>
                </li>
            </ul>
        </script>
    </div>

</div>